package com.vhall.component.controller.chat.facade;

import com.vhall.component.entity.chat.vo.ChatImgUploadVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author xianglei
 * @date 2021/6/18 10:27
 */
@FeignClient(value = "ChatApiFacade", path = "/v4/api/chat")
public interface ChatApiFacade {

    /**
     * 图片上传
     *
     * @param reqVo
     * @return
     */
    @PostMapping("/upload")
    Map<String, Object> upload(@Validated ChatImgUploadVo reqVo);
}